<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<%@ taglib prefix="fn" uri="http://java.sun.com/jsp/jstl/functions" %>
<%@ include file="/WEB-INF/jsp/meta.jsp"%>
<%--
  Created by IntelliJ IDEA.
  User: 82387
  Date: 2018/10/12
  Time: 16:17
  To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<html>
<head>
    <title>汇总打印</title>
    <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
    <script type="text/javascript" src="${ctx}/static/js/jquery.B.js"></script>
    <script type="text/javascript" src="${ctx}/static/js/jquery.PrintArea.js"></script>
</head>
<body>
<div style="width: 100%;margin-top: 10px;" >
    <a href="javascript:void(0)" onclick="doSumWagePrint()"> 打印</a>
</div>
<div style="width:100%;" id="sumWagePrint">
    <style type="text/css">
        table{ border-collapse:collapse;}
        table tr td{ border-bottom:1px solid #000000;text-align: center;font-size: smaller}
        table tr{height: 25px}
    </style>
    <div id="base_info" style="width:100%;">
        <div style="text-align: left;margin-bottom: 10px;margin-top: 10px"><h2>工资单汇总</h2></div>
        <table style="width:100%;"  frame=hsides>
            <tr>
                <td>月份</td>
                <td>部门</td>
                <td>基本工资</td>
                <td>薪级工资</td>
                <td>里程补贴</td>
                <td>误餐补助</td>
                <td>加班费</td>
                <td>其他1</td>
                <td>应发工资</td>
                <td>社保费</td>
                <td>公积金</td>
                <td>缺勤扣发</td>
                <td>所得税</td>
                <td>其他2</td>
                <td>实发工资</td>
            </tr>
            <c:forEach items="${wages}" var="wage">
                <tr>
                <td>${wage.sysDate}</td>
                <td>${wage.deptName}</td>
                <td>${wage.uesrBasicwage}</td>
                <td>${wage.userSalaryscale}</td>
                <td>${wage.userMiles}</td>
                <td>${wage.userMisuse}</td>
                <td>${wage.userOvertimepay}</td>
                <td>${wage.userOrther1}</td>
                <td>${wage.userPayablewage}</td>
                <td>${wage.userSocialsecurity}</td>
                <td>${wage.userAccumulation}</td>
                <td>${wage.userAbsenteeism}</td>
                <td>${wage.userIncometax}</td>
                <td>${wage.userOther2}</td>
                <td>${wage.userNetpayroll}</td>
                </tr>
            </c:forEach>
        </table>
        <h4>总人数:${count}</h4>
    </div>
</div>
<script type="text/javascript">
    function doSumWagePrint() {
        $("#sumWagePrint").printArea();
    }
</script>
</body>
</html>
